/**
 * 枚举类
 * @author ItJianGe
 * @data 2024/7/29 22:02
 */
public enum SingleEnum {
    SINGLE_ENUM;

    public void printWord() {
        System.out.println("枚举类本身就是单例...");
    }
}

class Test {
    public static void main(String[] args) {
        SingleEnum.SINGLE_ENUM.printWord();
    }
}
